package com.wkbb.common.enums;

public enum EntranceEnum {

    /**
     * 小程序
     */
    MINI(1,"小程序"),

    /**
     * 后台
     */
    AFTER_SERVER(2,"后台");

    private EntranceEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (EntranceEnum entranceEnum : EntranceEnum.values()) {
            if (entranceEnum.getValue().intValue()==value) {
                return entranceEnum.getDesc();
            }
        }
        return null;
    }

}

